package com.tianqingwl.gsystem.sysuser.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tianqingwl.gsystem.sysuser.pojo.SysUser;

import java.util.List;

public interface SysUserService {
    boolean updateSysUserPassword(String username, String password);
    SysUser findSysUserByUsername(String username);

    void listSysUserPage(Page<SysUser> userPage, Integer searchType, String searchStr);

    SysUser getUserById(Long userId);

    SysUser save(SysUser sysUser);

    void deleteById(Long userId);

    void deleteByIds(List<Long> userId);

    void addRole(Long userId, Long[] roleIds);
}
